package com.itheima.health.dao;

import com.itheima.health.pojo.Member;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @autahor: csl
 * @date: 2019/7/23
 * @description: 会员dao
 * @version:1.0
 */
public interface MemberDao {
    /**
     * 根据电话查询会员
     * @param telephone
     * @return
     */
    Member findMemberByTelephone(@Param("telephone") String telephone);

    /**
     * 添加会员
     * @param member
     */
    void addMember(Member member);


    Integer findMemberCountByBeforeDate(@Param("date") String date);

    Integer findMemberCountByDate(@Param("today") String today);

    Integer findMemberCountByAfterDate(@Param("date") String date);

    Integer findMemberTotalCount();
}
